﻿using System;
using System.Collections.Generic;
using System.Data;
namespace ZX.HIS.IDAL
{
	/// <summary>
	/// 接口层RegistInfo
	/// </summary>
	public interface IRegistInfo
    {
        #region 挂号信息保存表自写方法
        /// <summary>
        /// 返回挂号信息
        /// </summary>
        /// <returns></returns>
        int RegistInfoTopRegistId(int DepartId, int UserIdOne, int HospitalId);
        /// <summary>
        /// 未就诊人数
        /// </summary>
        /// <param name="RIModel"></param>
        /// <returns></returns>
        int RegistInfoCount(int DepartId, int UserIdOne, int HospitalId);
        /// <summary>
        /// 当前诊所下的所有挂号信息
        /// </summary>
        /// <param name="HospitalId"></param>
        /// <returns></returns>
        List<ZX.HIS.Model.RegistInfo> RegistInfoList(int HospitalId);
        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        ZX.HIS.Model.RegistInfo RegistInfoGetModel(int RegistId);

        /// <summary>
        /// 得到一个对象实体
        /// </summary>
        ZX.HIS.Model.RegistInfo DataRowToModel(DataRow row);
        /// <summary>
        /// 挂号信息分页查询
        /// </summary>
        /// <param name="PageIndex">页码</param>
        /// <param name="PageSize">每页条数</param>
        /// <param name="StrWhere">查询条件</param>
        /// <param name="StrOrder">排序条件</param>
        /// <returns></returns>
        List<ZX.HIS.Model.RegistInfo> RegistInfoPageList(int PageIndex, int PageSize, ZX.HIS.Model.RegistInfo RIModel, string StrOrder);
        /// <summary>
        /// 分页总条数
        /// </summary>
        /// <param name="RIModel"></param>
        /// <returns></returns>
        int RegistInfoCount(ZX.HIS.Model.RegistInfo RIModel);
        /// <summary>
        /// 添加挂号
        /// </summary>
        /// <param name="RIModel"></param>
        /// <returns></returns>
        bool RegistInfoAdd(ZX.HIS.Model.RegistInfo RIModel);
        /// <summary>
        /// 修改挂号信息
        /// </summary>
        /// <param name="RIModel"></param>
        /// <returns></returns>
        bool RegistInfoUpt(ZX.HIS.Model.RegistInfo RIModel);
        /// <summary>
        /// 获得用户表数据列表
        /// </summary>
        /// <param name="HospitalId">医院id</param>
        /// <param name="DepartId">科室id</param>
        /// <returns></returns>
        List<ZX.HIS.Model.UserInfo> GetUserList(int HospitalId, int DepartId);
        /// <summary>
        /// 修改状态
        /// </summary>
        /// <param name="RegistId"></param>
        /// <param name="RegistState"></param>
        /// <returns></returns>
        bool RegistInfoUpt(int RegistId, int RegistState);
        #endregion
        #region  成员方法
        ///// <summary>
        ///// 得到最大ID
        ///// </summary>
        //int GetMaxId();
        ///// <summary>
        ///// 是否存在该记录
        ///// </summary>
        //bool Exists(int RegistId);
        ///// <summary>
        ///// 增加一条数据
        ///// </summary>
        //int Add(ZX.HIS.Model.RegistInfo model);
        ///// <summary>
        ///// 更新一条数据
        ///// </summary>
        //bool Update(ZX.HIS.Model.RegistInfo model);
        ///// <summary>
        ///// 删除一条数据
        ///// </summary>
        //bool Delete(int RegistId);
        //bool DeleteList(string RegistIdlist );
        ///// <summary>
        ///// 得到一个对象实体
        ///// </summary>
        //ZX.HIS.Model.RegistInfo GetModel(int RegistId);
        //ZX.HIS.Model.RegistInfo DataRowToModel(DataRow row);
        ///// <summary>
        ///// 获得数据列表
        ///// </summary>
        //DataSet GetList(string strWhere);
        ///// <summary>
        ///// 获得前几行数据
        ///// </summary>
        //DataSet GetList(int Top,string strWhere,string filedOrder);
        //int GetRecordCount(string strWhere);
        //DataSet GetListByPage(string strWhere, string orderby, int startIndex, int endIndex);
        ///// <summary>
        ///// 根据分页获得数据列表
        ///// </summary>
        ////DataSet GetList(int PageSize,int PageIndex,string strWhere);
		#endregion  成员方法
		#region  MethodEx

		#endregion  MethodEx
	} 
}
